﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;

/* Generated with http://xmltocs.com/ */
namespace EDMXParserV1
{
    public class RowType
    {
        public RowType()
        {
            Properties = new List<Property>();
        }

        public List<Property> Properties { get; set; }

        public static RowType New(System.Xml.XmlNode Node)
        {
            RowType RowType = new RowType();

            foreach (XmlAttribute Attribute in Node.Attributes)
            {
                switch (Attribute.Name)
                {
                    default:
                        Globals.AttributeSwitchCoder(Attribute);
                        break;
                }
            }

            foreach (XmlNode ChildNode in Node.ChildNodes)
            {
                switch (ChildNode.Name)
                {
                    case "Property":
                        Property Property = Property.New(ChildNode);
                        RowType.Properties.Add(Property);
                        break;
                    default:
                        Globals.NodeSwitchCoder(ChildNode);
                        break;
                }
            }
            return RowType;
        }
    }
}
